wayland: Unset the source-side DnD fd after passing it to the stream
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Mar 2016 16:25:33 +0000 (17:25 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Mar 2016 17:39:15 +0000 (18:39 +0100)
The ownership is given to the stream, so unset it here.

gdk/wayland/gdkselection-wayland.c

index 30f35461f7537a4d9022d9ea0e4dd8512ba8f32b..1826bb2daf8247014a24462b92347adf75b732e9 100644 (file)
@@ -597,6 +597,8 @@ async_write_data_new (GdkWaylandSelection *selection)
   write_data->stream =
     g_unix_output_stream_new (selection->stored_selection.fd, TRUE);
 
+  selection->stored_selection.fd = -1;
+
   return write_data;
 }